package com.wujunshen.designpattern.creational.simplefactory.nofactory;

/**
 * @author frank woo(吴峻申) <br>
 *     email:<a href="mailto:frank_wjs@hotmail.com">frank_wjs@hotmail.com</a> <br>
 * @date 2021/2/16 21:48<br>
 */
public class NoFactory {
  public static final String BRAND_ONE = "brand-1";
  public static final String BRAND_TWO = "brand-2";

  public static void main(String[] args) {
    Vehicle vehicle;
    if (BRAND_ONE.equals(args[0])) {
      vehicle = new BrandOne();
    } else if (BRAND_TWO.equals(args[0])) {
      vehicle = new BrandTwo();
    }
  }
}
